import { ref, computed, reactive } from "vue";
import { defineStore } from "pinia";


export const cacheStore = defineStore("cache", () => {
	const ruleForm = reactive({
		a_id:null,
		c_username: '',
		c_email: '',
		c_blog: '',
		c_content: '',
		c_avatar:'',
		c_date:'',
		c_platform: '',
	}) as any
	const dynamic = reactive({       //查看动态变量
		a_id: null,
		u_id: null,
		a_title: '',
		a_views: '',
		a_comment_count: '',
		a_date: '',
		a_like_count: '',
		ds_id: '',
		dl_name: null,
		a_content: '',
		a_cover: '',
		dl_id: [],
		a_abstract: '',
	}) as any

	return { dynamic,ruleForm };

}, {
	persist: true // 开启pinia数据持久化
}
);
